import Main from '../view/homePage';
// 通用路由
export const userRouter = [
    {
    		index: 1,
        path: '/login',
        name: 'login',
        meta: {
            title: '输电线路数字化APP - 登录',
            hideInMenu: true
        },
        component: () => import('@/view/loginPage/login.vue')
    },
    {
    		index: 2,
        path: '',
        name: '',
        component: () => import('../components/foot.vue'),
        children: [
            {	
            		index: 0,
		        meta: {
		            title: '输电线路数字化APP - 首页'
		        },
                path: '/index',
                name: 'index',
                component: () => import('@/view/homePage/index.vue')
            },
            {
            		index: 1,
		        meta: {
		            title: '输电线路数字化APP - 通讯录'
		        },
                path: '/tongxunlu',
                name: 'tongxunlu',
                component: () => import('@/view/tongxunlu/tongxunlu.vue'),                
            },
            {
            		index: 2,
		        meta: {
		            title: '输电线路数字化APP - 公告'
		        },
                path: '/gonggao',
                name: 'gonggao',
                component: () => import('@/view/gonggao/gonggao.vue')
            },
            {
            		index: 3,
		        meta: {
		            title: '输电线路数字化APP - 我的'
		        },
                path: '/wode',
                name: 'wode',
                component: () => import('@/view/wode/wode.vue')
            },
            {
            		index: 4,
		        meta: {
		            title: '输电线路数字化APP - 紧急求助'
		        },
                path: '/jinjiqiuzhu',
                name: 'jinjiqiuzhu',
                component: () => import('@/view/jinjiqiuzhu/jinjiqiuzhu.vue')
            }
        ]
    }
]

// 页面模块公共路由
export const comRouter = [
     {
    		index: 1,
        meta: {
            title: '输电线路数字化APP - 通讯录详情'
        },
        path: '/tongxunlu_detail',
        name: 'tongxunlu_detail',
        component: () => import('@/view/tongxunlu/tongxunlu_detail.vue')
    },
    {
    		index: 2,
        meta: {
            title: '输电线路数字化APP - 公告详情'
        },
        path: '/gonggao_detail',
        name: 'gonggao_detail',
        component: () => import('@/view/gonggao/gonggao_detail.vue')
    },
]
// 常规巡视路由
export const cgxsRouter = [
 	{
		index: 1,
        meta: {
            title: '常规巡视 - 人员选择'
        },
        path: '/cgxs_renyuanXuanze',
        name: 'cgxs_renyuanXuanze',
        component: () => import('@/view/publicProcess/changguixunshi/cgxs_renyuanXuanze.vue')
    },
    {
		index: 2,
        meta: {
            title: '常规巡视 - 任务列表',
            keepAlive: true
        },
        path: '/cgxs_xianluXunshi',
        name: 'cgxs_xianluXunshi',
        component: () => import('@/view/publicProcess/changguixunshi/cgxs_xianluXunshi.vue')
    },
    {
		index: 3,
        path: '/cgxs_gantaXunshi',
        name: 'cgxs_gantaXunshi',
        meta: {
        		title: '常规巡视 - 杆塔列表',
            keepAlive: true
        },
        component: () => import('@/view/publicProcess/changguixunshi/cgxs_gantaXunshi.vue')
    },
    {
		index: 4,
        meta: {
            title: '常规巡视 - 预览杆塔信息',
			keepAlive: true,
			notCache: true
        },
        path: '/cgxs_noPhotos',
        name: 'cgxs_noPhotos',
        component: () => import('@/view/publicProcess/changguixunshi/cgxs_noPhotos.vue')
    },
    {
		index: 5,
        meta: {
            title: '常规巡视 - 杆塔操作作业',
			keepAlive: true
        },
        path: '/cgxs_allowPhotos',
        name: 'cgxs_allowPhotos',
        component: () => import('@/view/publicProcess/changguixunshi/cgxs_allowPhotos.vue')
    },
    {
        index: 6,
        meta: {
            title: '常规巡视 - 缺陷列表'
        },
        path: '/cgxs_quexianList',
        name: 'cgxs_quexianList',
        component: () => import('@/view/publicProcess/changguixunshi/cgxs_quexianList.vue')
    },
    {
        index: 7,
        meta: {
            title: '常规巡视 - 缺陷详情'
        },
        path: '/cgxs_quexianDetail',
        name: 'cgxs_quexianDetail',
        component: () => import('@/view/publicProcess/changguixunshi/cgxs_quexianDetail.vue')
    },
    {
        index: 8,
        meta: {
            title: '常规巡视 - 新增缺陷'
        },
        path: '/cgxs_quexianXinzheng',
        name: 'cgxs_quexianXinzheng',
        component: () => import('@/view/publicProcess/changguixunshi/cgxs_quexianXinzheng.vue')
    },
    {
        index: 9,
        meta: {
            title: '常规巡视 - 隐患详情'
        },
        path: '/cgxs_yinhuanDetail',
        name: 'cgxs_yinhuanDetail',
        component: () => import('@/view/publicProcess/changguixunshi/cgxs_yinhuanDetail.vue')
    },
    {
        index: 10,
        meta: {
            title: '常规巡视 - 隐患列表'
        },
        path: '/cgxs_yinhuanList',
        name: 'cgxs_yinhuanList',
        component: () => import('@/view/publicProcess/changguixunshi/cgxs_yinhuanList.vue')
    },
    {
        index: 11,
        meta: {
            title: '常规巡视 - 新增隐患'
        },
        path: '/cgxs_yinhuanXinzheng',
        name: 'cgxs_yinhuanXinzheng',
        component: () => import('@/view/publicProcess/changguixunshi/cgxs_yinhuanXinzheng.vue')
    },
    {
        index: 12,
        meta: {
            title: '常规巡视 - 测量记录'
        },
        path: '/cgxs_ceLiang',
        name: 'cgxs_ceLiang',
        component: () => import('@/view/publicProcess/changguixunshi/cgxs_ceLiang.vue')
    }
]
// 特殊巡视路由
export const tsxsRouter = [
	{
		index: 1,
        meta: {
            title: '特殊巡视 - 人员选择'
        },
        path: '/tsxs_renyuanXuanze',
        name: 'tsxs_renyuanXuanze',
        component: () => import('@/view/publicProcess/teshuxunshi/tsxs_renyuanXuanze.vue')
    },
    {
		index: 2,
        meta: {
            title: '特殊巡视 - 任务列表',
            keepAlive: true
        },
        path: '/tsxs_xianluXunshi',
        name: 'tsxs_xianluXunshi',
        component: () => import('@/view/publicProcess/teshuxunshi/tsxs_xianluXunshi.vue')
    },
    {
		index: 3,
        meta: {
            title: '特殊巡视 - 杆塔列表',
            keepAlive: true
        },
        path: '/tsxs_gantaXunshi',
        name: 'tsxs_gantaXunshi',
        component: () => import('@/view/publicProcess/teshuxunshi/tsxs_gantaXunshi.vue')
    },
    {
		index: 4,
        meta: {
            title: '特殊巡视 - 预览杆塔信息',
            keepAlive: true,
			notCache: true
        },
        path: '/tsxs_noPhotos',
        name: 'tsxs_noPhotos',
        component: () => import('@/view/publicProcess/teshuxunshi/tsxs_noPhotos.vue')
    },
    {
		index: 5,
        meta: {
            title: '特殊巡视 - 杆塔操作作业',
            keepAlive: true
        },
        path: '/tsxs_allowPhotos',
        name: 'tsxs_allowPhotos',
        component: () => import('@/view/publicProcess/teshuxunshi/tsxs_allowPhotos.vue')
    },
    {
        index: 6,
        meta: {
            title: '特殊巡视 - 缺陷列表',
        },
        path: '/tsxs_quexianList',
        name: 'tsxs_quexianList',
        component: () => import('@/view/publicProcess/teshuxunshi/tsxs_quexianList.vue')
    },
    {
        index: 7,
        meta: {
            title: '特殊巡视 - 缺陷详情'
        },
        path: '/tsxs_quexianDetail',
        name: 'tsxs_quexianDetail',
        component: () => import('@/view/publicProcess/teshuxunshi/tsxs_quexianDetail.vue')
    },
    {
        index: 8,
        meta: {
            title: '特殊巡视 - 新增缺陷'
        },
        path: '/tsxs_quexianXinzheng',
        name: 'tsxs_quexianXinzheng',
        component: () => import('@/view/publicProcess/teshuxunshi/tsxs_quexianXinzheng.vue')
    },
    {
        index: 9,
        meta: {
            title: '特殊巡视 - 隐患详情'
        },
        path: '/tsxs_yinhuanDetail',
        name: 'tsxs_yinhuanDetail',
        component: () => import('@/view/publicProcess/teshuxunshi/tsxs_yinhuanDetail.vue')
    },
    {
        index: 10,
        meta: {
            title: '特殊巡视 - 隐患列表'
        },
        path: '/tsxs_yinhuanList',
        name: 'tsxs_yinhuanList',
        component: () => import('@/view/publicProcess/teshuxunshi/tsxs_yinhuanList.vue')
    },
    {
        index: 11,
        meta: {
            title: '特殊巡视 - 新增隐患'
        },
        path: '/tsxs_yinhuanXinzheng',
        name: 'tsxs_yinhuanXinzheng',
        component: () => import('@/view/publicProcess/teshuxunshi/tsxs_yinhuanXinzheng.vue')
    },
    {
        index: 12,
        meta: {
            title: '特殊巡视 - 测量记录'
        },
        path: '/tsxs_ceLiang',
        name: 'tsxs_ceLiang',
        component: () => import('@/view/publicProcess/teshuxunshi/tsxs_ceLiang.vue')
    }
]
// 线路检修路由
export const xljxRouter = [
	{
		index: 1,
        meta: {
            title: '线路检修 - 人员选择'
        },
        path: '/xljx_renyuanXuanze',
        name: 'xljx_renyuanXuanze',
        component: () => import('@/view/publicProcess/xianlujianxiu/xljx_renyuanXuanze.vue')
    },
    {
		index: 2,
        meta: {
            title: '线路检修 - 任务列表',
            keepAlive: true
        },
        path: '/xljx_xianluXunshi',
        name: 'xljx_xianluXunshi',
        component: () => import('@/view/publicProcess/xianlujianxiu/xljx_xianluXunshi.vue')
    },
    {
		index: 3,
        meta: {
            title: '线路检修 - 杆塔列表',
            keepAlive: true
        },
        path: '/xljx_gantaXunshi',
        name: 'xljx_gantaXunshi',
        component: () => import('@/view/publicProcess/xianlujianxiu/xljx_gantaXunshi.vue')
    },
    {
		index: 4,
        meta: {
            title: '线路检修 - 预览杆塔信息',
            keepAlive: true,
			notCache: true
        },
        path: '/xljx_noPhotos',
        name: 'xljx_noPhotos',
        component: () => import('@/view/publicProcess/xianlujianxiu/xljx_noPhotos.vue')
    },
    {
		index: 5,
        meta: {
            title: '线路检修 - 杆塔操作作业',
            keepAlive: true
        },
        path: '/xljx_allowPhotos',
        name: 'xljx_allowPhotos',
        component: () => import('@/view/publicProcess/xianlujianxiu/xljx_allowPhotos.vue')
    },
    {
        index: 6,
        meta: {
            title: '线路检修 - 缺陷列表'
        },
        path: '/xljx_quexianList',
        name: 'xljx_quexianList',
        component: () => import('@/view/publicProcess/xianlujianxiu/xljx_quexianList.vue')
    },
    {
        index: 7,
        meta: {
            title: '线路检修 - 缺陷详情'
        },
        path: '/xljx_quexianDetail',
        name: 'xljx_quexianDetail',
        component: () => import('@/view/publicProcess/xianlujianxiu/xljx_quexianDetail.vue')
    },
    {
        index: 8,
        meta: {
            title: '线路检修 - 新增缺陷'
        },
        path: '/xljx_quexianXinzheng',
        name: 'xljx_quexianXinzheng',
        component: () => import('@/view/publicProcess/xianlujianxiu/xljx_quexianXinzheng.vue')
    },
    {
        index: 9,
        meta: {
            title: '线路检修 - 隐患详情'
        },
        path: '/xljx_yinhuanDetail',
        name: 'xljx_yinhuanDetail',
        component: () => import('@/view/publicProcess/xianlujianxiu/xljx_yinhuanDetail.vue')
    },
    {
        index: 10,
        meta: {
            title: '线路检修 - 隐患列表'
        },
        path: '/xljx_yinhuanList',
        name: 'xljx_yinhuanList',
        component: () => import('@/view/publicProcess/xianlujianxiu/xljx_yinhuanList.vue')
    },
    {
        index: 11,
        meta: {
            title: '线路检修 - 新增隐患'
        },
        path: '/xljx_yinhuanXinzheng',
        name: 'xljx_yinhuanXinzheng',
        component: () => import('@/view/publicProcess/xianlujianxiu/xljx_yinhuanXinzheng.vue')
    },
    {
        index: 12,
        meta: {
            title: '线路检修 - 测量记录'
        },
        path: '/xljx_ceLiang',
        name: 'xljx_ceLiang',
        component: () => import('@/view/publicProcess/xianlujianxiu/xljx_ceLiang.vue')
    }
]
// 保电值守路由
export const bdzsRouter = [
    {
		index: 1,
        meta: {
            title: '保电值守 - 人员选择'
        },
        path: '/bdzs_renyuanXuanze',
        name: 'bdzs_renyuanXuanze',
        component: () => import('@/view/publicProcess/baodianzhishou/bdzs_renyuanXuanze.vue')
    },
    {
		index: 2,
        meta: {
            title: '保电值守 - 任务列表',
            keepAlive: true
        },
        path: '/bdzs_xianluXunshi',
        name: 'bdzs_xianluXunshi',
        component: () => import('@/view/publicProcess/baodianzhishou/bdzs_xianluXunshi.vue')
    },
    {
		index: 3,
        meta: {
            title: '保电值守 - 杆塔列表',
            keepAlive: true
        },
        path: '/bdzs_gantaXunshi',
        name: 'bdzs_gantaXunshi',
        component: () => import('@/view/publicProcess/baodianzhishou/bdzs_gantaXunshi.vue')
    },
    {
		index: 4,
        meta: {
            title: '保电值守 - 杆塔预览列表',
            keepAlive: true,
			notCache: true
        },
        path: '/bdzs_noPhotos',
        name: 'bdzs_noPhotos',
        component: () => import('@/view/publicProcess/baodianzhishou/bdzs_noPhotos.vue')
    },
    {
		index: 5,
        meta: {
            title: '保电值守 - 杆塔操作作业',
            keepAlive: true
        },
        path: '/bdzs_allowPhotos',
        name: 'bdzs_allowPhotos',
        component: () => import('@/view/publicProcess/baodianzhishou/bdzs_allowPhotos.vue')
    },
    {
        index: 6,
        meta: {
            title: '保电值守 - 缺陷列表'
        },
        path: '/bdzs_quexianList',
        name: 'bdzs_quexianList',
        component: () => import('@/view/publicProcess/baodianzhishou/bdzs_quexianList.vue')
    },
    {
        index: 7,
        meta: {
            title: '保电值守 - 缺陷详情'
        },
        path: '/bdzs_quexianDetail',
        name: 'bdzs_quexianDetail',
        component: () => import('@/view/publicProcess/baodianzhishou/bdzs_quexianDetail.vue')
    },
    {
        index: 8,
        meta: {
            title: '保电值守 - 新增缺陷'
        },
        path: '/bdzs_quexianXinzheng',
        name: 'bdzs_quexianXinzheng',
        component: () => import('@/view/publicProcess/baodianzhishou/bdzs_quexianXinzheng.vue')
    },
    {
        index: 9,
        meta: {
            title: '保电值守 - 隐患详情'
        },
        path: '/bdzs_yinhuanDetail',
        name: 'bdzs_yinhuanDetail',
        component: () => import('@/view/publicProcess/baodianzhishou/bdzs_yinhuanDetail.vue')
    },
    {
        index: 10,
        meta: {
            title: '保电值守 - 隐患列表'
        },
        path: '/bdzs_yinhuanList',
        name: 'bdzs_yinhuanList',
        component: () => import('@/view/publicProcess/baodianzhishou/bdzs_yinhuanList.vue')
    },
    {
        index: 11,
        meta: {
            title: '保电值守 - 新增隐患'
        },
        path: '/bdzs_yinhuanXinzheng',
        name: 'bdzs_yinhuanXinzheng',
        component: () => import('@/view/publicProcess/baodianzhishou/bdzs_yinhuanXinzheng.vue')
    },
    {
        index: 12,
        path: '/bdzs_ceLiang',
        name: 'bdzs_ceLiang',
        meta: {
            title: '保电值守 - 测量记录'
        },
        component: () => import('@/view/publicProcess/baodianzhishou/bdzs_ceLiang.vue')
    }
]

// 审核路由
export const shenheRouter = [
    {	
    		index: 1,
        meta: {
            title: '审核管理列表'
        },
        path: '/shenhe_list',
        name: 'shenhe_list',
        component: () => import('@/view/shenhePage/shenhe_list.vue')
    },
    {
    		index: 2,
        meta: {
            title: '隐患审核管理详情'
        },
        path: '/shenhe_yhDetail',
        name: 'shenhe_yhDetail',
        component: () => import('@/view/shenhePage/shenhe_yhDetail.vue')
    },
    {
    		index: 3,
        meta: {
            title: '缺陷审核管理详情'
        },
        path: '/shenhe_qxDetail',
        name: 'shenhe_qxDetail',
        component: () => import('@/view/shenhePage/shenhe_qxDetail.vue')
    }
]

// 错误路由
export const errorRouter = [
    {
        path: '/401',
        name: 'error401',
        meta: {
            hideInMenu: true
        },
        component: () => import('@/view/errorPage/401.vue')
    },
    {
        path: '/500',
        name: 'error500',
        meta: {
            hideInMenu: true
        },
        component: () => import('@/view/errorPage/500.vue')
    },
    {
        path: '*',
        name: 'error404',
        meta: {
            hideInMenu: true
        },
        component: () => import('@/view/errorPage/404.vue')
    }
]